<?php /* Smarty version 2.6.26, created on 2014-04-30 09:23:18
         compiled from shop/leftshop.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'getsuburl', 'shop/leftshop.tpl', 11, false),array('function', 'geturl', 'shop/leftshop.tpl', 17, false),)), $this); ?>
<div id="column-left" style="background: url(/images/leftshop.png) repeat-y;padding: 20px 20px 0 20px;margin-left: -10px;">
    <span class='re2'>Выставка мастера</span><br>
<span id="nameshop" ><?php echo $this->_tpl_vars['shop']->first_name; ?>
 <?php echo $this->_tpl_vars['shop']->last_name; ?>
</span>
<span class="countrycity" ><?php echo $this->_tpl_vars['shop']->country; ?>
, <?php echo $this->_tpl_vars['shop']->city; ?>
</span>
<div style="text-align:center;margin:10px 0;width:187px;height:187px;">    
<img src="<?php echo $this->_tpl_vars['shop']->photo; ?>
" alt="<?php echo $this->_tpl_vars['shop']->login; ?>
" style="width:187px;height:187px;"> 
<br>

</div>
<div class="leftmenu">
<a href="<?php echo smarty_function_getsuburl(array('route' => 'shop','name' => $this->_tpl_vars['shop']->nameshop,'action' => 'profile'), $this);?>
">Профиль</a>
<a href="<?php echo smarty_function_getsuburl(array('route' => 'shop','name' => $this->_tpl_vars['shop']->nameshop,'action' => 'index'), $this);?>
" >Магазин</a>
<a href="<?php echo smarty_function_getsuburl(array('route' => 'shop','name' => $this->_tpl_vars['shop']->nameshop,'action' => 'reviews'), $this);?>
" >Отзывы</a>
<a href="<?php echo smarty_function_getsuburl(array('route' => 'shop','name' => $this->_tpl_vars['shop']->nameshop,'action' => 'policy'), $this);?>
" >Правила магазина</a>
<a href="<?php echo smarty_function_getsuburl(array('route' => 'shop','name' => $this->_tpl_vars['shop']->nameshop,'action' => 'request'), $this);?>
">Персональный заказ</a>
                  <?php if ($this->_tpl_vars['status'] == 'none'): ?>
                        <form method="post" action="<?php echo smarty_function_geturl(array('controller' => 'social','action' => 'addasfriend'), $this);?>
">
                            <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['shop']->getId(); ?>
" />
                            <input type="submit" name="addfriend" value="Добавить в друзья" />
                        </form>
                  <?php elseif ($this->_tpl_vars['status'] == 'request'): ?>
                      Вы отправили заявку в друзья
                      <br />
                      <a href="<?php echo smarty_function_geturl(array('route' => 'cancelrequest','id' => $this->_tpl_vars['shop']->getId()), $this);?>
">Отменить заявку</a>
                  <?php elseif ($this->_tpl_vars['status'] == 'approved'): ?>
                      Вы друзья
                      <br />
                      <a href='<?php echo smarty_function_geturl(array('controller' => 'social','action' => 'deletefromfiends'), $this);?>
?user<?php echo $this->_tpl_vars['shop']->getId(); ?>
'>Удалить из друзей</a>
                  <?php endif; ?>   
                  <a href="<?php echo smarty_function_geturl(array('route' => 'viewdialog','id' => $this->_tpl_vars['shop']->getId()), $this);?>
">Написать сообщение</a>

 </div>  
 <div class="widget" style="margin-left: -20px;">
        <h4 class="widget-title">Категории</h4>
        <div class="widget-content">
            <div class="textwidget">
                <div class="dcjq-accordion" id="dc_jqaccordion_widget-2-item">
            <ul id="menu-cat" class="menu">
                <?php $_from = $this->_tpl_vars['cats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cat']):
?>
                  <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-<?php echo $this->_tpl_vars['cat']->getId(); ?>
">
                        <a id="<?php echo $this->_tpl_vars['cat']->getId(); ?>
" href="<?php echo smarty_function_getsuburl(array('route' => 'shop','name' => $this->_tpl_vars['shop']->nameshop), $this);?>
?cat=<?php echo $this->_tpl_vars['cat']->getId(); ?>
">
                           <?php echo $this->_tpl_vars['cat']->name; ?>
  
                           <span class="dcjq-icon"></span>
                        </a>
                       
                    </li>       
                    <?php endforeach; endif; unset($_from); ?>
            </ul>		
        </div>
                      <br>
            </div>
        </div>
        <!-- end .widget-content-->
    </div>                 
</div>